package com.sumc.springcloud.feign.service;

import com.sumc.springcloud.feign.config.MyFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @describe：使用feign调用远程服务
 * @author: Smc
 * @version:v1.0 2020/3/23 10:56   Try to write good code
 */
@FeignClient(name = "spring-cloud-eureka-provider",fallbackFactory =  MyFallbackFactory.class)
public interface FeignService {

    @GetMapping("say")
    public String sayHello();



}
